<!--

    This file is part of kanji-portal.com.

    kanji-portal.com is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    kanji-portal.com is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with kanji-portal.com.  If not, see <http://www.gnu.org/licenses/>.

    Copyright (c) 2008-2009 Nicolas Radde <nicolas@radde.org>

-->
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:s="http://jboss.com/products/seam/taglib">

    <ol class="menu">
        <li><s:link view="/home.xhtml" propagation="none"><h:outputText
                value="#{messages['menu.slink.home']}"/></s:link>
        </li>
        <li><h:outputText value="#{messages['menu.text.kanjiRandom']}"/></li>
        <li><s:link view="/kanji/search.xhtml" propagation="none"><h:outputText
                value="#{messages['menu.slink.kanjiSearch']}"/></s:link></li>
        <li><s:link view="/dictionary/search.xhtml" propagation="none"><h:outputText
                value="#{messages['menu.slink.dictionarySearch']}"/></s:link></li>
        <li><h:outputText value="#{messages['menu.slink.admin']}" rendered="#{s:hasRole('admin')}"/>
            <ol>
                <li><s:link view="/admin/lucene.xhtml" propagation="none"><h:outputText
                        value="#{messages['menu.slink.adminLucene']}" rendered="#{s:hasRole('admin')}"/></s:link></li>
                <li><s:link view="/admin/users.xhtml" propagation="none"><h:outputText
                        value="#{messages['menu.slink.adminUsers']}" rendered="#{s:hasRole('admin')}"/></s:link></li>
            </ol>
        </li>
    </ol>

</ui:composition>